package com.corpgovernment.organization.entity.db;

import com.corpgovernment.common.annotation.OperateLogFieldDesc;
import com.corpgovernment.common.entity.db.BaseEntity;
import com.corpgovernment.common.enums.DeleteStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;


/**
 *
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "mb_org_switch_info")
@SuppressWarnings("serial")
public class MbOrgSwitchInfo extends BaseEntity {

    /**
     * 开关名称
     **/
    @Column(name = "switch_name")
    @OperateLogFieldDesc(value = "开关名称")
    private String switchName;

    /**
     * 开关key标识
     **/
    @Column(name = "switch_key")
    @OperateLogFieldDesc(value = "开关key标识")
    private String switchKey;

    /**
     * 是否激活
     **/
    @Column(name = "active")
    @OperateLogFieldDesc(value = "是否激活")
    private Boolean active;
    /**
     * 是否为组合开关
     */
    @Column(name = "group_switch")
    @OperateLogFieldDesc(value = "是否为组合开关")
    private Boolean groupSwitch;
    /**
     * 删除状态 0:未删除 1:删除 默认是0
     */
    @Column(name = "is_deleted")
    @OperateLogFieldDesc(value = "删除状态", type = DeleteStatusEnum.class)
    private Boolean isDeleted;
}
